import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
// import FastClick from 'fastclick'
import * as filters from "@/filter";
import "lib-flexible";
// 引入 vant 配置 公共文件
import "@/plugins/vant";

import axios from "@/api/index";

Vue.prototype.$axios = axios;

Vue.config.productionTip = false;
// 全局注册过滤器  VUE3舍弃过滤器/珍惜用吧
Object.keys(filters).forEach(item => {
  Vue.filter(item, filters[item]);
});

// 引入echarts
import echarts from "./echarts/echarts";
// 挂载到vue实例中
Vue.prototype.$echarts = echarts
// 解决移动端 300ms 延迟的问题，方法之一
// FastClick.attach(document.body)
var VueTouch = require('vue-touch')
Vue.use(VueTouch, { name: 'v-touch' })

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
